var Promise = require("bluebird");

new Promise(function(resolve, reject){

    reject({code: 404, errmsg: {}})

})

process.on('unhandledRejection', function (error) {
    console.log('any errors will stop whole ci process in case of unexcepted behavior', error)
    throw new Error('webpack build failed.');
    process.exit(1)
});